Getting Started with JavaScript

Author: Al-mamun Sarkar Date: 2021-03-29 15:32:11

JavaScript is one of the most popular programming languages. It is used as a client-side scripting language for web development. If you want to be a web developer you have got to know JavaScript. JavaScript is not only being used as a client-side scripting language for web development but also for Backend development, Mobile application development.

For getting started with JavaScript you don't need to install anything. You can run JavaScript with HTML in the browser. But if you want you can install NodeJs for running JavaScript directly.  

Example:

Create an HTML file and run the following code.

<!DOCTYPE html>
<html>
<head>
	<title> Getting Started With JS </title>
</head>
<body>

    <h1>A Web Page</h1>

    <p id="myId"></p>

<script>

  document.getElementById("myId").innerHTML = "This is JavaScript Example";
  
</script>

</body>
</html>

Output:

 

A Web Page

This is JavaScript Example